﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace IndoReputation.Models.BusinessObject
{
    public class NewsValues : CommonEntity
    {
        /// <summary>
        /// Default Contructor
        /// </summary>
        public NewsValues()
        { }

        [Required]
        public int ID
        {
            set;
            get;
        }

        [Required]
        public Int64 NewsID
        {
            set;
            get;
        }

        [Required]
        public int NewsParameterID
        {
            set;
            get;
        }

        [Required]
        public byte NewsMark
        {
            set;
            get;
        }

        [Required]
        public byte NewsParameterValue
        {
            set;
            get;
        }
        public DateTime? CreateAt
        {
            set;
            get;
        }
        public int? CreateBy
        {
            set;
            get;
        }
        public DateTime? UpdateAt
        {
            set;
            get;
        }
        public int? UpdateBy
        {
            set;
            get;
        }
    }

    public class NewsValuesJoin
    {
        public int ID { get; set; }
        public int NewsID { get; set; }
        public int NewsParameterID { get; set; }
        public string NewsParameterName { get; set; }
        public byte NewsParameterValue { get; set; }
        public byte NewsMark { get; set; }
        public DateTime CreateAt { get; set; }
        public int CreateBy { get; set; }
    }
}